<?php

/**
* 本函数用以调用文章的摘要
**/

function get_excerpt($excerpt){
		$content = get_the_content();
		$content = strip_tags($content,'<img><h3><blockquote><strong>');
		//$content = preg_replace('/<h1[^>].*?</h1>/i',"[图片省略]",$content);
		$content = mb_strimwidth($content,0,800,'...');
		return wpautop($content);
}
add_filter('the_excerpt','get_excerpt');